<?php
$data = file_get_contents("./jiekou.json");
$result = preg_match_all('/{"标题":"(.*?)","小标题":"(.*?)","地址":"(.*?)","状态":"(.*?)"}/',$data,$v);
?>

<?php
include('./template/index.php');
?>

<?php
@$zongtiaoyong = intval(file_get_contents("./api/tongji/zongtiaoyong/xiaoyu.dat"));
@$jinri = intval(file_get_contents("./api/tongji/jinri/".date("Y-m-d")."/".date("Y-m-d").".dat"));
?>

<!DOCTYPE html><html lang="zh"><head><meta charset="utf-8">

    <title><?php echo $web["ming"]; ?>API - 免费提供API服务</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <link rel="icon" href="http://q2.qlogo.cn/headimg_dl?dst_uin=<?php echo $web["qq"]; ?>&spec=5" type="image/ico">
        <meta name="keywords" content="<?php echo $web["keywords"]; ?>">
        <meta name="description" content="<?php echo $web["description"]; ?>">
    <link href="./template/3/css/bootstrap.min.css" rel="stylesheet">
    <link href="./template/3/css/site.min.css" rel="stylesheet">
    <link href="https://lib.baomitu.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head><body class="home-template">
<header class="site-header">
<nav class="navbar navbar-static-top main-navbar" id="top">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#bs-navbar">
<a href="../../zhuye">首页</a>
<a target="_blank" href="../../gengxin">更新日志</a>
<a href="../../yuanma">联系我们</a>
</button></nav>
<div class="box-text">
<img src="http://q2.qlogo.cn/headimg_dl?dst_uin=<?php echo $web["qq"]; ?>&amp;spec=100" style="width:70px;height:70px;border-radius:100px;">
<h1><?php echo $web["ming"]; ?>API</h1>
<h4>稳定、快速、免费的 API 接口服务<br>
<div class="search-wraper" role="search" style="/*display: none;*/">
<div class="form-group">
<form action="/" method="POST">
<input class="form-control search clearable" placeholder="搜索API名称，然后回车！" name="msg"> 
<i class="fa fa-search"></i></form></div>
<span class="package-amount">本站共收录了<strong> <?php echo $result; ?> </strong>个接口</span>
<p></p>
<span class="package-amount">今日调用<strong> <?php echo $jinri; ?> </strong>次 ◎ 总调用<strong> <?php echo $zongtiaoyong; ?> </strong>次</span>
<p></p>
<p></p>
<ul id="autoBox">
<i class="fa fa-search"></i></ul></div>
</h4></div></header>
<div class="list-group packages" id="search-results" style="display: none">
</div>

<?php
include('./template/3/Template.php');
?>

<div class="list-group packages" id="search-results" style="display: none">
</div>

<footer id="footer" class="footer hidden-print">
<div class="container">
<div class="row">
<div class="footer-about col-md-5 col-sm-12" id="about">
<h4>关于 <?php echo $web["ming"]; ?>API</h4>
<p><?php echo $web["ming"]; ?>API 是 <a href="https://www.owq.plus" target="_blank">OwQ Studio</a> 支持并维护的 API 接口项目，致力于为用户提供稳定、快速的免费 API 接口服务平台。</p>
<p></p>
<p><font color="#FF0000"><i class="fa fa-warning fa-spin"></i> 本网站用更精简的信息为你的网站/软件提供实用的服务，如果您的项目已开始使用我提供的 API 服务，则默认视为遵守。</font>
</p>
<p><font onclick="layer.alert('".$ming."');" color="#FF0000"> <i class="fa fa-bar-chart"></i> </font>自上线以来累计总调用 <font color="#FF6633"><?php echo $zongtiaoyong; ?></font> 次。及今日已经调用接口次数 <font color="#FF6633"><?php echo $jinri; ?></font> 次API接口服务。</p>
<p>反馈及建议请加入官方群：<a href="".$web["qun"]."" target="_blank"><?php echo $web["qun_url"]; ?></a></p>
<p></p>
<p></p></div>
<div class="footer-techs col-md-2 col-sm-12">
                        <h4>友情链接</h4>
                        <ul class="list-unstyled list-inline">
<?php
$目录 = file_get_contents("./template/youqing.php");
$友情 = preg_match_all("/『名字：(.*?)』『链接：(.*?)』『介绍：(.*?)』『QQ：(.*?)』『状态：已添加』/",$目录,$v);
?>

<?php
if($友情== 0){
echo "";
}else{
for( $i = 0 ; $i < $友情 && $i < $友情 ; $i ++ ){
$名字=$v[1][$i];
$链接=$v[2][$i];
echo '<li><a href="'.$链接.'" target="_blank">'.$名字.'</a></li>';
}}?>
<li><a onclick="return alert('友链申请说明\n网站名:<?php echo $web["ming"]; ?>API\n网址:<?php echo $tianyi719; ?>\n介绍:一个咸鱼的网站\nQQ:<?php echo $web["qq"]; ?>\n这是例子，请把你申请友链内容发送到<?php echo $web["youxiang"]; ?>\n一定把我网站写到你的友链表上，否则不给你添加');" target='_blank'>申请友链</a></li>

                        </ul>
                    </div>
                    <div class="footer-links col-md-3 col-sm-12">
                        <h4>API大全</h4>
                        <ul class="list-unstyled list-inline">
<li><?php
include('./template/API.php');
?><li>
                        </ul>
                    </div>
                </div>
            </div></div>
<div class="copy-right">
<span>Copyright&nbsp;©&nbsp;2021-2022&nbsp;<a href="#" target="_blank">囍楽API</a>&nbsp;版权所有</span></div>
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_<?php echo $guchenyu; ?>'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z_stat.php%3Fid%3D<?php echo $guchenyu; ?>%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>

<!--伪造崩溃-->
    <script>
        var OriginTitile = document.title;
        var titleTime;
        document.addEventListener('visibilitychange', function() {
            if (document.hidden) {
                document.title = '(ﾟДﾟ*)ﾉ页面崩溃啦~';
                clearTimeout(titleTime);
            }
            else {
                document.title = 'ヾ(^▽^*))) 又好了嘿嘿~' ;
                titleTime = setTimeout(function() {
                    document.title = OriginTitile;
                }, 1000);
            }
        });
    </script>
<!--伪造崩溃代码结束-->

<!--点击特效代码-->
<script type="text/javascript">
(function() {var coreSocialistValues = ["富强", "民主", "文明", "和谐", "自由", "平等", "公正", "法治", "爱国", "敬业", "诚信", "友善"], index = Math.floor(Math.random() * coreSocialistValues.length);document.body.addEventListener('click', function(e) {if (e.target.tagName == 'A') {return;}var x = e.pageX, y = e.pageY, span = document.createElement('span');span.textContent = coreSocialistValues[index];index = (index + 1) % coreSocialistValues.length;span.style.cssText = ['z-index: 9999999; position: absolute; font-weight: bold; color: #ff6651; top: ', y - 20, 'px; left: ', x, 'px;'].join('');document.body.appendChild(span);animate(span);});function animate(el) {var i = 0, top = parseInt(el.style.top), id = setInterval(frame, 16.7);function frame() {if (i > 180) {clearInterval(id);el.parentNode.removeChild(el);} else {i+=2;el.style.top = top - i + 'px';el.style.opacity = (180 - i) / 180;}}}}());
</script><script type="text/javascript" src="./template/3/js/HanSnow.js"></script>

<script>(function(d,t,u,s,e){e=d.getElementsByTagName(t)[0];s=d.createElement(t);s.src=u;s.async=1;e.parentNode.insertBefore(s,e);})(document,'script','//api.xxuan.xyz/zhuye/data/kefu/php/app.php?widget-init.js');</script>

<!--音乐开始-->
<audio autoplay>
<source src="https://api.uomg.com/api/rand.music?sort=热歌榜" type="audio/mpeg">
</audio>
<!--音乐结束-->

</footer></body><!--点击特效结束--></html>